package com.gateway.security.common.extract;

import com.gateway.common.enums.AuthenticationTypeEnum;
import com.gateway.security.common.authentication.client.ClientAuthenticationToken;
import com.gateway.security.common.authentication.client.ClientPrincipal;
import org.springframework.web.server.ServerWebExchange;

/**
 * @program: api-gateway
 * @description:
 * @author: YuKai Fan
 * @create: 2025/2/12 11:35
 **/
public class DefaultClientExtractor implements ClientExtractor {

    private final static DefaultClientExtractor INSTANCE = new DefaultClientExtractor();

    public static DefaultClientExtractor getInstance() {
        return INSTANCE;
    }

    private DefaultClientExtractor() {
    }

    @Override
    public ServerWebExchange extract(ServerWebExchange exchange, ClientAuthenticationToken token) {
        // do nothing
        return exchange;
    }
}
